package com.iphanta.community.common;

import com.iphanta.community.common.entity.DataResult;
import com.iphanta.community.common.utils.ResultUtils;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 墨声 E-mail: zehong.hongframe.huang@gmail.com
 * create time: 4/25/22 3:48 PM
 */
@RestController
@RequestMapping("/")
public class BaseController {

    @GetMapping("error")
    public DataResult error() {
        return ResultUtils.FAIL_ON_ERROR.result();
    }

}
